package com.bjpowernode.mapper;

import com.bjpowernode.annotation.DataScope;
import com.bjpowernode.entity.TClue;
import com.bjpowernode.query.BaseQuery;
import com.bjpowernode.query.ClueExcelQuery;
import com.bjpowernode.result.NameValueResult;

import java.util.List;

public interface TClueMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TClue record);

    int insertSelective(TClue record);

    TClue selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TClue record);

    int updateByPrimaryKey(TClue record);

    @DataScope(tableName = "tc", columnName = "owner_id")
    List<TClue> selectClueByPage(BaseQuery baseQuery);

    TClue selectClueById(Integer id);

    int deleteClues(List<String> list);

    void saveExcel(List<ClueExcelQuery> clueExcelQueryList);

    Integer selectTotalClueCount();

    List<NameValueResult> cluePie();
}
